[ty] Experiment: Relaxed isinstance narrowing#26361
Closed
sharkdp wants to merge 15 commits into
Closed
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 94.47%. The percentage of expected errors that received a diagnostic held steady at 89.19%. The number of fully passing files held steady at 95/134. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownprefect
trio
flake8
sphinx
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
215 | 991 | 148 |
unresolved-attribute |
157 | 143 | 103 |
invalid-assignment |
91 | 219 | 63 |
invalid-return-type |
66 | 118 | 39 |
no-matching-overload |
49 | 103 | 0 |
call-top-callable |
129 | 1 | 0 |
invalid-await |
111 | 3 | 2 |
unsupported-operator |
25 | 43 | 6 |
not-subscriptable |
17 | 49 | 3 |
invalid-key |
0 | 62 | 0 |
not-iterable |
20 | 18 | 8 |
call-non-callable |
18 | 23 | 1 |
invalid-yield |
5 | 15 | 1 |
index-out-of-bounds |
0 | 14 | 0 |
redundant-cast |
2 | 10 | 0 |
unused-type-ignore-comment |
5 | 7 | 0 |
unused-ignore-comment |
8 | 0 | 0 |
invalid-type-form |
0 | 2 | 2 |
invalid-raise |
0 | 2 | 0 |
possibly-unresolved-reference |
0 | 2 | 0 |
unknown-argument |
2 | 0 | 0 |
deprecated |
1 | 0 | 0 |
too-many-positional-arguments |
1 | 0 | 0 |
type-assertion-failure |
0 | 0 | 1 |
| Total | 922 | 1,825 | 377 |
Large timing changes:
| Project | Old Time | New Time | Change |
|---|---|---|---|
static-frame |
0.69s | 1.21s | +76% |
Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.
Showing a random sample of 227 of 3124 changes. See the HTML report for the full diff.
Raw diff sample (227 of 3124 changes)
Expression (https://github.com/cognitedata/Expression)
- expression/collections/maptree.py:121:51 error[invalid-argument-type] Argument to function `mk` is incorrect: Argument type `object` does not satisfy upper bound `SupportsLessThan` of type variable `Key`
- expression/collections/maptree.py:133:32 error[invalid-argument-type] Argument to function `mk` is incorrect: Expected `Option[MapTreeLeaf[Key@rebalance, object]]`, found `Option[MapTreeLeaf[Never, Never]]`
- expression/collections/maptree.py:141:31 error[invalid-argument-type] Argument to function `mk` is incorrect: Expected `Option[MapTreeLeaf[Key@rebalance, object]]`, found `Option[MapTreeLeaf[Never, Never]]`
PyGithub (https://github.com/PyGithub/PyGithub)
- github/AdvisoryCredit.py:113:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["login"]` on object of type `Top[dict[Unknown, Unknown]]`
- github/AdvisoryVulnerability.py:141:51 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["vulnerable_functions"]` on object of type `Top[dict[Unknown, Unknown]]`
- github/AdvisoryVulnerability.py:175:41 error[unresolved-attribute] Attribute `vulnerable_version_range` is not defined on `SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]` in union `(SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]) | (AdvisoryVulnerability & ~Top[dict[Unknown, Unknown]])`
+ github/AdvisoryVulnerability.py:175:41 error[unresolved-attribute] Attribute `vulnerable_version_range` is not defined on `SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]` in union `(SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]) | (AdvisoryVulnerability & ~dict[Unknown, Unknown])`
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/clients.py:1492:16 error[unresolved-attribute] Object of type `CommandBuilder` has no attribute `is_dm_enabled`
+ tanjun/clients.py:1492:16 error[unresolved-attribute] Attribute `is_dm_enabled` is not defined on `CommandBuilder` in union `CommandBuilder | (AppCommand[Any] & ~AppCommand[Unknown])`
- tanjun/commands/slash.py:1795:52 error[invalid-argument-type] Argument is incorrect: Expected `str`, found `object`
aiohttp (https://github.com/aio-libs/aiohttp)
- aiohttp/cookiejar.py:389:16 error[invalid-argument-type] Method `__getitem__` of type `bound method defaultdict[tuple[str, str], SimpleCookie].__getitem__(key: tuple[str, str], /) -> SimpleCookie` cannot be called with key of type `tuple[Morsel[str] | Any | str, Any | str]` on object of type `defaultdict[tuple[str, str], SimpleCookie]`
alerta (https://github.com/alerta/alerta)
+ alerta/models/key.py:114:48 error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `ApiKey`
archinstall (https://github.com/archlinux/archinstall)
- archinstall/lib/profile/profiles_handler.py:124:25 error[invalid-argument-type] Argument to bound method `list.append` is incorrect: Expected `Profile`, found `object`
beartype (https://github.com/beartype/beartype)
+ beartype/vale/_is/_valeistype.py:392:17 error[invalid-argument-type] Argument to function `die_unless_type_issubclassable` is incorrect: Expected `type`, found `type | (tuple[type, ...] & ~tuple[Unknown, ...])`
bidict (https://github.com/jab/bidict)
- bidict/_iter.py:28:25 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Maplike[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[Maplike[Unknown, object]]`
bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/util/datatypes.py:92:24 warning[redundant-cast] Value is already of type `set[V@MultiValuedDict]`
- src/bokeh/core/property/bases.py:252:44 error[invalid-argument-type] Argument to function `array_equal` is incorrect: Expected `ArrayLike`, found `T@Property & ~ndarray[tuple[object, ...], dtype[object]]`
+ src/bokeh/core/property/bases.py:252:44 error[invalid-argument-type] Argument to function `array_equal` is incorrect: Expected `ArrayLike`, found `T@Property & ~ndarray[tuple[Any, ...], dtype[Any]]`
+ src/bokeh/core/property/wrappers.py:563:21 error[invalid-assignment] Cannot assign to a subscript on an object of type `Sequence[Any]`
+ src/bokeh/models/layouts.py:294:13 error[invalid-assignment] Object of type `str | (tuple[int, int, int] & ~Color & ~tuple[Unknown, ...]) | (tuple[int, int, int, int | float] & ~Color & ~tuple[Unknown, ...])` is not assignable to attribute `background_color` on type `(dict[str, str | None] & Any & ~Bottom[dict[Unknown, Unknown]]) | (Styles & ~dict[Unknown, Unknown])`
build (https://github.com/pypa/build)
- src/build/_builder.py:135:16 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["requires"]` on object of type `Top[dict[Unknown, Unknown]]`
core (https://github.com/home-assistant/core)
- homeassistant/auth/permissions/merge.py:61:43 error[invalid-argument-type] Argument to function `_merge_policies` is incorrect: Expected `list[CategoryType]`, found `list[Mapping[str, ValueType] | bool | None]`
+ homeassistant/auth/permissions/merge.py:61:43 error[invalid-argument-type] Argument to function `_merge_policies` is incorrect: Expected `list[CategoryType]`, found `list[(Mapping[str, ValueType] & Unknown) | (bool & Unknown) | None]`
- homeassistant/auth/permissions/merge.py:61:13 error[invalid-assignment] Cannot assign to a subscript on an object of type `Mapping[str, SubCategoryType]`
+ homeassistant/components/html5/notify.py:375:20 error[invalid-return-type] Return type does not match returned value: expected `Response`, found `(Response & ~dict[Unknown, Unknown]) | (dict[str, Any] & ~dict[Unknown, Unknown])`
+ homeassistant/components/isy994/sensor.py:290:63 error[invalid-argument-type] Argument to bound method `UnitSystem.temperature` is incorrect: Expected `str`, found `(dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (str & ~Literal["25"] & ~Literal["2"])`
- homeassistant/components/onvif/device.py:432:21 error[unresolved-attribute] Object of type `object` has no attribute `VideoEncoderConfiguration`
- homeassistant/components/onvif/device.py:433:20 error[unresolved-attribute] Object of type `object` has no attribute `VideoEncoderConfiguration`
- homeassistant/components/onvif/device.py:439:17 error[unresolved-attribute] Object of type `object` has no attribute `token`
- homeassistant/components/onvif/device.py:457:21 error[unresolved-attribute] Object of type `object` has no attribute `PTZConfiguration`
- homeassistant/components/rest/data.py:51:35 error[invalid-argument-type] Argument to constructor `BasicAuth.__new__` is incorrect: Expected `str`, found `object`
- homeassistant/helpers/selector.py:32:26 error[invalid-assignment] Object of type `object` is not assignable to `str`
+ homeassistant/helpers/service.py:1185:40 error[invalid-argument-type] Argument to function `is_entity_service_schema` is incorrect: Expected `VolSchemaType`, found `(dict[str | Marker, Any] & ~dict[Unknown, Unknown]) | (Schema & ~dict[Unknown, Unknown]) | (All & ~dict[Unknown, Unknown]) | (Any & ~dict[Unknown, Unknown])`
cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/builder.py:273:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/builder.py:273:21 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/builder.py:276:20 error[invalid-key] Unknown key "inputBinding" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]] & <Protocol with members '__contains__'> & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & <Protocol with members '__contains__'> & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & <Protocol with members '__contains__'> & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`)
- cwltool/builder.py:279:24 error[invalid-key] Unknown key "loadContents" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`)
- cwltool/builder.py:279:24 error[invalid-key] Unknown key "loadContents" for TypedDict `CWLFileType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`)
- cwltool/builder.py:282:21 error[invalid-argument-type] Argument to bound method `Builder.bind_input` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements]`, found `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`
- cwltool/builder.py:291:25 error[invalid-argument-type] Argument to bound method `Builder.bind_input` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements]`, found `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`
- cwltool/checker.py:115:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:115:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:118:61 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:123:12 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Divergent, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Divergent]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Divergent]`
- cwltool/checker.py:123:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:123:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Divergent, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Divergent]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Divergent]`
- cwltool/checker.py:133:39 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Divergent, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Divergent]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Divergent]`
- cwltool/checker.py:133:43 error[invalid-key] Unknown key "type" for TypedDict `CWLFileType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]]) | ... omitted 5 union elements`)
- cwltool/checker.py:133:57 error[invalid-key] Unknown key "type" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]]) | ... omitted 5 union elements`)
- cwltool/checker.py:146:44 error[invalid-argument-type] Argument to function `can_assign_src_to_sink` is incorrect: Expected `int | str | float | ... omitted 6 union elements`, found `object`
- cwltool/command_line_tool.py:1531:17 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/command_line_tool.py:1531:17 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/cwlprov/provenance_profile.py:580:37 error[invalid-argument-type] Argument to bound method `ProvenanceProfile.used_artefacts` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements] | list[MutableMapping[str, int | str | float | ... omitted 5 union elements]]`, found `str | MutableMapping[str, int | str | float | ... omitted 5 union elements]`
- cwltool/main.py:311:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- cwltool/main.py:319:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- cwltool/pack.py:32:26 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["run"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:33:40 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["run"]` on object of type `str`
- cwltool/pack.py:48:35 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["id"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:48:35 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:93:31 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:93:33 error[invalid-key] Unknown key "id" for TypedDict `CWLDirectoryType` (subscripted object has type `(MutableMapping[str, int | str | float | ... omitted 5 union elements] & ~Top[MutableSequence[Unknown]]) | (int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 4 union elements`)
- cwltool/pack.py:94:39 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- cwltool/pack.py:149:33 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- cwltool/process.py:1226:26 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["id"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/utils.py:195:41 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- tests/test_examples.py:349:12 error[not-subscriptable] Cannot subscript object of type `float` with no `__getitem__` method
- tests/test_examples.py:1474:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["checksum"]` on object of type `Top[dict[Unknown, Unknown]]`
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/appsec/_api_security/_normalized_route.py:1083:61 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Mapping[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[Mapping[Unknown, object]]`
+ ddtrace/contrib/internal/botocore/services/bedrock.py:348:12 error[invalid-return-type] Return type does not match returned value: expected `dict[str, list[str]]`, found `dict[str, list[str] | list[Unknown] | list[Divergent] | list[str | Unknown | list[Unknown]]]`
- ddtrace/llmobs/_evaluators/llm_judge.py:702:59 error[invalid-argument-type] Argument to bound method `LLMClient.__call__` is incorrect: Expected `dict[str, Any] | None`, found `None | (BooleanStructuredOutput & Top[dict[Unknown, Unknown]] & ~AlwaysFalsy) | (ScoreStructuredOutput & Top[dict[Unknown, Unknown]] & ~AlwaysFalsy) | ... omitted 3 union elements`
- ddtrace/llmobs/_evaluators/llm_judge.py:812:50 error[invalid-argument-type] Argument to function `LLMJudge._format_schema_for_provider` is incorrect: Expected `dict[str, Any]`, found `(BooleanStructuredOutput & Top[dict[Unknown, Unknown]]) | (ScoreStructuredOutput & Top[dict[Unknown, Unknown]]) | (CategoricalStructuredOutput & Top[dict[Unknown, Unknown]]) | dict[str, str | int | float | ... omitted 3 union elements]`
+ ddtrace/llmobs/_evaluators/llm_judge.py:700:31 error[unresolved-attribute] Attribute `to_json_schema` is not defined on `dict[str, str | int | float | ... omitted 3 union elements] & ~AlwaysFalsy & ~dict[Unknown, Unknown]` in union `(BooleanStructuredOutput & ~AlwaysFalsy & ~dict[Unknown, Unknown]) | (ScoreStructuredOutput & ~AlwaysFalsy & ~dict[Unknown, Unknown]) | (CategoricalStructuredOutput & ~AlwaysFalsy & ~dict[Unknown, Unknown]) | (dict[str, str | int | float | ... omitted 3 union elements] & ~AlwaysFalsy & ~dict[Unknown, Unknown])`
discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/core.py:2547:13 error[invalid-assignment] Object of type `DynamicCooldownMapping[Context[Any]]` is not assignable to attribute `__commands_cooldown__` on type `((...) -> Coroutine[Any, Any, Any]) & ~Top[Command[Unknown, (...), Unknown]]`
+ discord/ext/commands/core.py:2547:13 error[invalid-assignment] Object of type `DynamicCooldownMapping[Context[Any]]` is not assignable to attribute `__commands_cooldown__` on type `((...) -> Coroutine[Any, Any, Any]) & ~Command[Unknown, (...), Unknown]`
+ discord/ui/section.py:189:64 error[invalid-argument-type] Argument to `TextDisplay.__init__` is incorrect: Expected `str`, found `(str & Item[Unknown] & ~Item[Unknown]) | (Item[Any] & ~Item[Unknown]) | (str & ~Item[Unknown]) | (Item[Any] & str & ~Item[Unknown])`
django-modern-rest (https://github.com/wemake-services/django-modern-rest)
- dmr/streaming/controller.py:38:16 error[invalid-argument-type] Argument to bound method `StreamingController.to_stream` is incorrect: Argument type `Controller[BaseSerializer] & StreamingController[object]` does not satisfy upper bound `StreamingController[_SerializerT_co@StreamingController]` of type variable `Self`
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/optimize/optimize_reports/optimize_reports.py:394:32 error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `Literal["weekday"]` on object of type `list[Unknown]`
graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/pyutils/description.py:43:17 error[invalid-assignment] Object of type `tuple[(type & ~<class 'object'>) | (tuple[type, ...] & ~tuple[Unknown, ...]), type & ~<class 'object'>]` is not assignable to attribute `bases` of type `type | tuple[type, ...]`
+ src/graphql/execution/execute.py:2957:46 error[invalid-await] `Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any] | ExecutionResult` is not awaitable
- src/graphql/language/visitor.py:285:75 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
hydpy (https://github.com/hydpy-dev/hydpy)
- hydpy/cythons/modelutils.py:1027:41 error[invalid-argument-type] Argument to bound method `PyxWriter.set_pointer` is incorrect: Expected `InputSequences[Model] | OutputSequences[Model, OutputSequence] | LinkSequences[Model, LinkSequence]`, found `(InputSequences[Model] & LinkSequences[object, object]) | (FactorSequences[Model] & LinkSequences[object, object]) | (FluxSequences[Model] & LinkSequences[object, object]) | ... omitted 8 union elements`
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/funcs.py:136:59 error[invalid-assignment] Object of type `(Sequence[str | (((...) -> Any, /) -> ((...) -> Any))] & ~str) | ((((...) -> Any, /) -> ((...) -> Any)) & Sequence[object] & ~str)` is not assignable to `Sequence[str | (((...) -> Any, /) -> ((...) -> Any))]`
ibis (https://github.com/ibis-project/ibis)
- ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[object, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[object, ...])]`
+ ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[Unknown, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[Unknown, ...])]`
jax (https://github.com/google/jax)
+ jax/_src/numpy/reductions.py:2566:30 error[invalid-argument-type] Argument to function `canonicalize_axis` is incorrect: Expected `SupportsIndex`, found `int | (tuple[int, ...] & ~tuple[Unknown, ...])`
jinja (https://github.com/pallets/jinja)
+ src/jinja2/compiler.py:1160:78 error[invalid-argument-type] Argument to bound method `Symbols.ref` is incorrect: Expected `str`, found `str | tuple[str, str]`
koda-validate (https://github.com/keithasaurus/koda-validate)
- koda_validate/serialization/json_schema.py:340:17 error[invalid-return-type] Return type does not match returned value: expected `dict[str, None | int | str | ... omitted 4 union elements]`, found `dict[str, object]`
- koda_validate/serialization/json_schema.py:380:22 error[unresolved-attribute] Object of type `object` has no attribute `isoformat`
kopf (https://github.com/nolar/kopf)
- kopf/_core/reactor/subhandling.py:72:17 error[invalid-argument-type] Argument is incorrect: Expected `ChangingFn`, found `object`
meson (https://github.com/mesonbuild/meson)
- mesonbuild/cargo/manifest.py:766:40 error[no-matching-overload] No overload of function `normpath` matches arguments
- mesonbuild/interpreter/interpreter.py:2890:13 error[unresolved-attribute] Unresolved attribute `used` on type `HoldableObject`
+ mesonbuild/interpreterbase/decorators.py:336:24 error[unresolved-attribute] Attribute `__name__` is not defined on `tuple[type, ...] & ~tuple[Unknown, ...]` in union `type | (tuple[type, ...] & ~tuple[Unknown, ...])`
- mesonbuild/modules/hotdoc.py:262:28 error[no-matching-overload] No overload of bound method `HotdocTargetBuilder.ensure_file` matches arguments
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/http.py:1082:21 error[no-matching-overload] No overload of function `always_bytes` matches arguments
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:834:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[dict[Unknown, Unknown]]`
- mkdocs/config/config_options.py:840:16 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[dict[Unknown, Unknown]]`
- mkdocs/config/config_options.py:858:28 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `object`
mkosi (https://github.com/systemd/mkosi)
+ mkosi/config.py:2586:27 error[invalid-argument-type] Argument to function `load` is incorrect: Expected `_typeshed.SupportsRead[str | bytes]`, found `(dict[str, Any] & <Protocol with members 'read'> & ~dict[Unknown, Unknown]) | (mkosi.util.SupportsRead[str] & ~str & ~dict[Unknown, Unknown]) | (mkosi.util.SupportsRead[bytes] & ~str & ~dict[Unknown, Unknown])`
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/helpers_shared.py:189:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Mapping[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[Mapping[Unknown, object]]`
mypy (https://github.com/python/mypy)
- mypy/test/test_diff_cache.py:126:56 error[unresolved-attribute] Object of type `object` has no attribute `startswith`
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/plugins/upstream/addbook.py:280:24 error[unresolved-attribute] Attribute `key` is not defined on `list[Unknown] & ~list[Unknown] & ~AlwaysFalsy` in union `(Work & ~list[Unknown] & ~AlwaysFalsy) | (Edition & ~list[Unknown] & ~AlwaysFalsy) | (list[Unknown] & ~list[Unknown] & ~AlwaysFalsy)`
packaging (https://github.com/pypa/packaging)
- src/packaging/markers.py:436:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["_markers"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/packaging/version.py:280:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[int, ...]`, found `tuple[object, ...]`
- src/packaging/version.py:799:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_release` of type `tuple[int, ...]`
- src/packaging/version.py:799:37 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["_release"]` on object of type `Top[dict[Unknown, Unknown]]`
pandas (https://github.com/pandas-dev/pandas)
- pandas/core/ops/mask_ops.py:73:17 error[unsupported-operator] Unary operator `~` is not supported for object of type `ndarray[tuple[Any, ...], dtype[Any]] | (NAType & ndarray[tuple[object, ...], dtype[object]])`
+ pandas/io/excel/_util.py:299:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Hashable, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Hashable]]` cannot be called with key of type `Sequence[int]` on object of type `list[Hashable]`
- pandas/core/algorithms.py:586:12 error[no-matching-overload] No overload of bound method `ndarray.any` matches arguments
- pandas/core/algorithms.py:1551:40 error[invalid-argument-type] Argument to function `_sort_tuples` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `Index | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/core/algorithms.py:1551:40 error[invalid-argument-type] Argument to function `_sort_tuples` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `ndarray[tuple[Any, ...], dtype[Any]] | ExtensionArray | Index`
+ pandas/core/arrays/arrow/array.py:1278:20 error[unresolved-attribute] Attribute `_pa_array` is not defined on `ndarray[tuple[Any, ...], dtype[object_]] & ~ndarray[tuple[Any, ...], dtype[Any]]` in union `(Self@_arith_method & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[object_]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Object of type `ExtensionArray & ~Top[Interval[Unknown]]` has no attribute `codes`
+ pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Attribute `codes` is not defined on `ExtensionArray & ~Interval[Unknown]` in union `(Unknown & Interval[Unknown] & ~Interval[Unknown]) | (ExtensionArray & ~Interval[Unknown])`
+ pandas/core/arrays/masked.py:1105:33 error[invalid-argument-type] Argument to `NumericArray.__init__` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `(ndarray[tuple[Any, ...], dtype[Any]] & ~tuple[Unknown, ...]) | (tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]] & ~tuple[Unknown, ...])`
- pandas/core/construction.py:664:26 error[no-matching-overload] No overload of function `maybe_convert_objects` matches arguments
- pandas/core/dtypes/cast.py:1529:26 error[no-matching-overload] No overload of bound method `ndarray.astype` matches arguments
- pandas/core/groupby/grouper.py:655:27 error[unresolved-attribute] Attribute `isna` is not defined on `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 4 union elements`
+ pandas/core/groupby/grouper.py:655:27 error[unresolved-attribute] Attribute `isna` is not defined on `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 3 union elements`
+ pandas/core/indexes/base.py:1320:21 error[no-matching-overload] No overload of bound method `ndarray.take` matches arguments
+ pandas/core/indexes/base.py:7239:20 error[invalid-return-type] Return type does not match returned value: expected `int`, found `(int & ~ndarray[tuple[Any, ...], dtype[Any]]) | (slice[Any, Any, Any] & ~slice[Any, Any, Any]) | (ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- pandas/io/formats/format.py:571:22 error[invalid-assignment] Object of type `(Sequence[str | int] & Top[Mapping[Unknown, object]] & ~int & ~str) | (Mapping[Hashable, str | int] & ~int & ~str)` is not assignable to `Mapping[Hashable, str | int]`
- pandas/io/formats/printing.py:283:24 error[invalid-assignment] Object of type `list[object]` is not assignable to `Iterable[str] | None`
+ pandas/io/formats/style_render.py:1225:25 error[invalid-assignment] Object of type `dict[Unknown, str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown) | None] | None]` is not assignable to `str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown) | None] | None`
pandera (https://github.com/pandera-dev/pandera)
- pandera/io/_minimal.py:145:34 error[invalid-argument-type] Argument to function `prune_component_dict` is incorrect: Expected `dict[str, Any]`, found `Top[dict[Unknown, Unknown]]`
- pandera/io/_minimal.py:257:38 error[invalid-argument-type] Argument to function `prune_component_dict` is incorrect: Expected `dict[str, Any]`, found `Top[dict[Unknown, Unknown]]`
- pandera/decorators.py:401:20 error[invalid-return-type] Return type does not match returned value: expected `None`, found `(Any & ~tuple[object, ...]) | tuple[object, ...]`
+ pandera/decorators.py:401:20 error[invalid-return-type] Return type does not match returned value: expected `None`, found `(Any & ~tuple[Unknown, ...]) | tuple[Unknown, ...]`
pip (https://github.com/pypa/pip)
- src/pip/_vendor/packaging/specifiers.py:1496:17 error[invalid-assignment] Object of type `tuple[object, ...]` is not assignable to attribute `_specs` of type `tuple[Specifier, ...]`
- src/pip/_vendor/packaging/version.py:792:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_local` of type `tuple[int | str, ...] | None`
- src/pip/_vendor/packaging/version.py:804:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_local` of type `tuple[int | str, ...] | None`
- src/pip/_vendor/packaging/version.py:815:29 error[unresolved-attribute] Object of type `~None` has no attribute `dev`
- src/pip/_vendor/requests/utils.py:402:16 error[invalid-return-type] Return type does not match returned value: expected `list[tuple[_KT@to_key_val_list, _VT@to_key_val_list]] | None`, found `list[tuple[object, object]]`
prefect (https://github.com/PrefectHQ/prefect)
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:173:22 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:462:18 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:773:12 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:42:23 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:99:30 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/tests/cloud/test_utils.py:54:28 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/tests/cloud/test_utils.py:70:23 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-docker/tests/test_containers.py:41:26 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-docker/tests/test_images.py:28:27 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:425:33 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:332:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_deployments.py:137:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_pods.py:92:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_services.py:61:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-redis/tests/test_tasks.py:111:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/prefect/_internal/compatibility/deprecated.py:280:25 error[call-non-callable] Object of type `dict[Unknown, Unknown]` is not callable
- src/prefect/task_engine.py:1652:28 error[invalid-await] `R@AsyncTaskRunEngine | Coroutine[Any, Any, R@AsyncTaskRunEngine]` is not awaitable
- src/prefect/task_engine.py:1239:20 error[invalid-return-type] Return type does not match returned value: expected `R@AsyncTaskRunEngine | State[Any] | None`, found `(R@AsyncTaskRunEngine & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]]) | (type[NotSet] & ~<class 'NotSet'>)`
+ src/prefect/task_engine.py:1239:20 error[invalid-return-type] Return type does not match returned value: expected `R@AsyncTaskRunEngine | State[Any] | None`, found `(R@AsyncTaskRunEngine & ~<class 'NotSet'> & ~ResultRecord[Unknown]) | (type[NotSet] & ~<class 'NotSet'>)`
- src/prefect/testing/utilities.py:281:9 error[invalid-argument-type] Argument to bound method `ResultStore.aread` is incorrect: Expected `str`, found `str | None`
+ src/prefect/testing/utilities.py:281:9 error[invalid-argument-type] Argument to bound method `ResultStore.aread` is incorrect: Expected `str`, found `str | None | Any`
psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/rows.py:145:12 error[invalid-return-type] Return type does not match returned value: expected `type[tuple[object, ...]] & type[NamedTupleLike]`, found `<class 'Row'>`
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/ptmalloc.py:270:30 error[call-non-callable] Object of type `~None & ~Type` is not callable
- pwndbg/commands/ptmalloc2.py:1536:26 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
+ pwndbg/commands/ptmalloc2.py:1536:26 error[not-subscriptable] Cannot subscript object of type `None` with no `__getitem__` method
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/_internal/_discriminated_union.py:448:83 error[invalid-argument-type] Argument to bound method `_ApplyInferredDiscriminator._infer_discriminator_values_for_inner_schema` is incorrect: Expected `InvalidSchema | AnySchema | NoneSchema | ... omitted 49 union elements`, found `InvalidSchema | AnySchema | NoneSchema | ... omitted 50 union elements`
+ pydantic/_internal/_generate_schema.py:2311:29 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: Literal[-2, 0], /) -> InvalidSchema | AnySchema | NoneSchema | ... omitted 49 union elements, (index: Literal[-1, 1], /) -> str, (index: SupportsIndex, /) -> InvalidSchema | AnySchema | NoneSchema | ... omitted 50 union elements, (index: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> tuple[InvalidSchema | AnySchema | NoneSchema | ... omitted 50 union elements, ...]]` cannot be called with key of type `Literal["type"]` on object of type `tuple[InvalidSchema | AnySchema | NoneSchema | ... omitted 49 union elements, str]`
+ pydantic/main.py:947:30 error[invalid-assignment] Object of type `tuple[type[Any] | (tuple[type[Any], ...] & ~tuple[Unknown, ...])]` is not assignable to `type[Any] | tuple[type[Any], ...]`
- pydantic/v1/main.py:1128:52 error[invalid-argument-type] Argument to `ValidationError.__init__` is incorrect: Expected `Sequence[Sequence[Any] | ErrorWrapper]`, found `list[object] & ~AlwaysFalsy`
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/config/findpaths.py:156:28 error[invalid-return-type] Return type does not match returned value: expected `str | list[str]`, found `Top[list[Unknown]] | str`
schema_salad (https://github.com/common-workflow-language/schema_salad)
- src/schema_salad/avro/schema.py:804:44 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["names"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/schema_salad/jsonld_context.py:211:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- src/schema_salad/ref_resolver.py:1135:61 error[invalid-argument-type] Argument to bound method `Loader.validate_link` is incorrect: Expected `str | CommentedSeq | CommentedMap`, found `object`
- src/schema_salad/ref_resolver.py:1155:62 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`
- src/schema_salad/ref_resolver.py:1159:45 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:543:56 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:560:27 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["names"]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/sourceline.py:224:28 error[invalid-argument-type] Argument to function `cmap` is incorrect: Expected `int | float | str | ... omitted 3 union elements`, found `object`
schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/core/error_feedback/parsers/go_validator.py:171:12 error[invalid-return-type] Return type does not match returned value: expected `list[dict[Unknown, Unknown]] | None`, found `Top[list[Unknown]] & ~AlwaysFalsy`
- src/schemathesis/core/output/sanitization.py:32:21 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `list[str]` on object of type `Top[CaseInsensitiveDict[Unknown]]`
- src/schemathesis/specs/openapi/adapter/servers.py:35:30 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["default"]` on object of type `Top[dict[Unknown, Unknown]]`
+ src/schemathesis/config/_error.py:122:20 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `list[Unknown]` on object of type `dict[str, str]`
- src/schemathesis/specs/openapi/negative/mutations.py:205:67 error[invalid-argument-type] Argument is incorrect: Expected `str | int | None`, found `object`
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/_vendor/pyproject_metadata/project_table.py:358:51 error[invalid-argument-type] Argument to function `join` is incorrect: Expected `str`, found `object`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ sklearn/externals/array_api_extra/_delegation.py:374:25 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `tuple[int, ...] | int`
+ sklearn/externals/array_api_extra/_delegation.py:375:49 error[invalid-argument-type] Argument to function `max` is incorrect: Expected `Iterable[Unknown]`, found `tuple[int, ...] | int`
- sklearn/preprocessing/_polynomial.py:437:16 error[unsupported-operator] Operator `>` is not supported between objects of type `object` and `Literal[3]`
scipy (https://github.com/scipy/scipy)
- scipy/io/_mmio.py:939:19 error[unresolved-attribute] Attribute `tocoo` is not defined on `ndarray[tuple[Any, ...], dtype[Unknown]]`, `ndarray[tuple[Any, ...], Unknown]` in union `(Unknown & ~Top[list[Unknown]] & ~tuple[object, ...] & ~<Protocol with members '__array__'>) | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[Any, ...], Unknown]`
+ scipy/io/_mmio.py:939:19 error[unresolved-attribute] Attribute `tocoo` is not defined on `ndarray[tuple[Any, ...], dtype[Unknown]]`, `ndarray[tuple[Any, ...], Unknown]` in union `(Unknown & ~list[Unknown] & ~tuple[Unknown, ...] & ~<Protocol with members '__array__'>) | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[Any, ...], Unknown]`
+ scipy/sparse/_index.py:389:23 error[invalid-argument-type] Argument to constructor `int.__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | ndarray[tuple[Any, ...], dtype[Unknown]] | (slice[Any, Any, Any] & ~slice[Any, Any, Any])`
+ scipy/sparse/_index.py:394:14 error[unresolved-attribute] Attribute `dtype` is not defined on `slice[Any, Any, Any] & ~slice[Any, Any, Any]` in union `(Unknown & ~None & ~slice[Any, Any, Any]) | ndarray[tuple[Any, ...], dtype[Unknown]] | (slice[Any, Any, Any] & ~slice[Any, Any, Any])`
- subprojects/array_api_extra/tests/conftest.py:101:46 error[invalid-argument-type] Argument to function `as_readonly` is incorrect: Expected `T@_wrap`, found `object`
- subprojects/highs/highs/highspy/highs.py:868:47 error[invalid-assignment] Object of type `Mapping[Any, highs_var] | (Iterable[highs_var] & Top[Mapping[Unknown, object]]) | (highs_var & Top[Mapping[Unknown, object]])` is not assignable to `Mapping[Any, highs_var]`
- subprojects/highs/highs/highspy/highs.py:999:61 error[invalid-assignment] Object of type `(highs_linear_expression & Top[Mapping[Unknown, object]]) | (Iterable[highs_linear_expression] & Top[Mapping[Unknown, object]]) | (tuple[highs_linear_expression | Iterable[highs_linear_expression], ...] & Top[Mapping[Unknown, object]])` is not assignable to `Mapping[Any, highs_linear_expression]`
+ subprojects/highs/highs/highspy/highs.py:888:18 error[unresolved-attribute] Attribute `index` is not defined on `Mapping[Any, highs_var] & ~Iterable[Unknown]` in union `(Mapping[Any, highs_var] & ~Iterable[Unknown]) | (Iterable[highs_var] & Any & ~Mapping[Unknown, Unknown] & ~Iterable[Never]) | (highs_var & ~Iterable[Unknown])`
scrapy (https://github.com/scrapy/scrapy)
- scrapy/utils/datatypes.py:90:15 error[invalid-assignment] Object of type `ItemsView[object, object] | (Iterable[tuple[AnyStr@update, Any]] & ~Top[Mapping[Unknown, object]])` is not assignable to `Mapping[AnyStr@update, Any] | Iterable[tuple[AnyStr@update, Any]]`
+ scrapy/utils/log.py:134:37 error[invalid-argument-type] Argument to function `install_scrapy_root_handler` is incorrect: Expected `Settings`, found `Settings | (dict[str, Any] & ~dict[Unknown, Unknown])`
spack (https://github.com/spack/spack)
+ lib/spack/spack/vendor/jinja2/compiler.py:1544:40 error[invalid-argument-type] Argument to bound method `CodeGenerator._output_child_pre` is incorrect: Expected `Expr`, found `(list[Any] & ~list[Unknown]) | (Expr & ~list[Unknown])`
spark (https://github.com/apache/spark)
- python/pyspark/core/rdd.py:5289:68 error[invalid-assignment] Object of type `(int, Iterable[Never], /) -> Iterable[object]` is not assignable to `(int, Iterable[TypeVar], /) -> Iterable[T@PipelinedRDD]`
- python/pyspark/ml/linalg/__init__.py:406:47 error[invalid-argument-type] Argument to function `dot` is incorrect: Expected `_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | ... omitted 5 union elements`, found `Iterable[int | float] & ~ndarray[tuple[object, ...], dtype[object]] & ~Vector`
+ python/pyspark/ml/linalg/__init__.py:406:47 error[invalid-argument-type] Argument to function `dot` is incorrect: Expected `_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | ... omitted 5 union elements`, found `Iterable[int | float] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Vector`
- python/pyspark/mllib/linalg/__init__.py:865:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `Unknown` on object of type `ndarray[tuple[object, ...], dtype[object]]`
+ python/pyspark/mllib/linalg/__init__.py:103:16 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
+ python/pyspark/mllib/linalg/__init__.py:146:16 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
+ python/pyspark/pandas/internal.py:1370:26 error[no-matching-overload] No overload of bound method `DataFrame.select` matches arguments
+ python/pyspark/pandas/namespace.py:2568:34 error[invalid-assignment] Object of type `list[DataFrame[Unknown] | Series[Unknown]]` is not assignable to `list[DataFrame[Unknown]]`
+ python/pyspark/pandas/tests/indexes/test_indexing_loc.py:292:59 error[unresolved-attribute] Attribute `__name__` is not defined on `tuple[def op6(df) -> Unknown, Literal[True]] & ~tuple[Unknown, ...]` in union `((def op6(df) -> Unknown) & Unknown) | (def op0(df) -> Unknown) | (def op1(df) -> Unknown) | ... omitted 5 union elements`
+ python/pyspark/pandas/typedef/typehints.py:890:82 error[unresolved-attribute] Attribute `stop` is not defined on `tuple[slice[Any, Any, Any], ...] & ~Iterable[Unknown]` in union `Any | (tuple[slice[Any, Any, Any], ...] & ~Iterable[Unknown])`
- python/pyspark/sql/classic/dataframe.py:1209:36 error[invalid-argument-type] Argument to bound method `DataFrame._jcols` is incorrect: Expected `Sequence[Column | str] | Column`, found `object`
- python/pyspark/sql/classic/dataframe.py:434:26 error[invalid-assignment] Object of type `(Column & Top[list[Unknown]]) | list[int | float | str]` is not assignable to `tuple[int | float | str | Column | list[int | float | str], ...]`
+ python/pyspark/sql/classic/dataframe.py:434:26 error[invalid-assignment] Object of type `(Column & list[Unknown]) | list[int | float | str]` is not assignable to `tuple[int | float | str | Column | list[int | float | str], ...]`
+ python/pyspark/sql/connect/dataframe.py:1017:35 error[invalid-argument-type] Argument to function `_to_col` is incorrect: Expected `Column | str`, found `(Column & ~tuple[Unknown, ...] & ~list[Unknown]) | str | (list[Column | str] & Any & ~Bottom[list[Unknown]]) | (tuple[Column | str, ...] & ~tuple[Unknown, ...])`
- python/pyspark/sql/connect/plan.py:2925:14 error[call-non-callable] Object of type `Column` is not callable
- python/pyspark/sql/readwriter.py:1715:25 error[invalid-assignment] Object of type `list[str] | tuple[str, ...]` is not assignable to `tuple[str | None, ...]`
+ python/pyspark/sql/readwriter.py:1715:25 error[invalid-assignment] Object of type `list[str] | (tuple[str, ...] & tuple[Unknown, ...])` is not assignable to `tuple[str | None, ...]`
- python/pyspark/sql/types.py:2433:36 error[unresolved-attribute] Attribute `group` is not defined on `None` in union `Match[str] | None`
+ python/pyspark/sql/types.py:2445:14 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
+ python/pyspark/sql/types.py:2468:14 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
+ python/pyspark/sql/types.py:2474:14 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
+ python/pyspark/testing/utils.py:1191:46 error[invalid-argument-type] Argument to function `assertSchemaEqual` is incorrect: Expected `StructType`, found `StructType | Any | Series[Any]`
- python/pyspark/testing/utils.py:1027:44 error[unresolved-attribute] Attribute `columns` is not defined on `list[Row]` in union `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & Top[list[Unknown]]) | (pyspark.pandas.frame.DataFrame[Unknown] & Top[list[Unknown]]) | list[Row]`
+ python/pyspark/testing/utils.py:1027:44 error[unresolved-attribute] Attribute `columns` is not defined on `list[Row]` in union `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & list[Unknown]) | (pyspark.pandas.frame.DataFrame[Unknown] & list[Unknown]) | list[Row]`
static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/frame.py:8947:17 warning[possibly-unresolved-reference] Name `labels_insert` used when possibly not defined
+ static_frame/core/frame.py:747:54 error[unresolved-attribute] Attribute `_columns` is not defined on `Series[Any, Any] & ~Series[Any, Any]` in union `(@Todo & ~Series[Any, Any]) | (Series[Any, Any] & ~Series[Any, Any]) | Frame`
- static_frame/core/type_blocks.py:3587:35 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- static_frame/core/type_blocks.py:3596:31 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
+ static_frame/core/type_blocks.py:3129:41 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- static_frame/core/util.py:4072:16 error[unresolved-attribute] Object of type `(...) -> object` has no attribute `__name__`
+ static_frame/core/util.py:4072:16 error[unresolved-attribute] Object of type `(...) -> Unknown` has no attribute `__name__`
strawberry (https://github.com/strawberry-graphql/strawberry)
- strawberry/http/sync_base_view.py:269:20 error[unresolved-attribute] Object of type `object` has no attribute `errors`
sympy (https://github.com/sympy/sympy)
- sympy/printing/pretty/pretty_symbology.py:356:19 error[index-out-of-bounds] Index 2 is out of bounds for tuple `tuple[tuple[Unknown, Unknown, Unknown, Unknown], str]` with length 2
- sympy/printing/pretty/pretty_symbology.py:357:19 error[index-out-of-bounds] Index 3 is out of bounds for tuple `tuple[tuple[Unknown, str, Unknown, Unknown], Unknown]` with length 2
+ sympy/parsing/mathematica.py:724:37 error[unresolved-attribute] Attribute `find` is not defined on `list[Unknown] & ~list[Unknown]` in union `str | (list[Unknown] & ~list[Unknown]) | Unknown`
- sympy/physics/mechanics/lagrange.py:516:23 error[not-iterable] Object of type `(Unknown & ~Top[dict[Unknown, Unknown]]) | None` may not be iterable
+ sympy/physics/mechanics/lagrange.py:516:23 error[not-iterable] Object of type `(Unknown & ~dict[Unknown, Unknown]) | None` may not be iterable
+ sympy/polys/rings.py:944:20 error[invalid-argument-type] Argument to bound method `PolyElement._try_rsub_ground` is incorrect: Argument type `Er@PolyElement & PolyElement[Unknown] & ~PolyElement[Er@PolyElement]` does not satisfy upper bound `PolyElement[Er@PolyElement]` of type variable `Self`
+ sympy/solvers/ode/ode.py:709:24 error[unresolved-attribute] Attribute `subs` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
- sympy/tensor/array/arrayop.py:514:31 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Unknown & Iterable[object] & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase) | (NDimArray & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase)`
+ sympy/tensor/array/arrayop.py:514:31 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Unknown & Iterable[Unknown] & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase) | (NDimArray & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase)`
+ sympy/vector/implicitregion.py:462:25 error[invalid-argument-type] Argument to function `_symbol` is incorrect: Expected `str | Symbol`, found `Unknown | (tuple[Literal["t"], Literal["s"]] & ~tuple[Unknown, ...])`
vision (https://github.com/pytorch/vision)
+ torchvision/utils.py:74:18 error[unresolved-attribute] Attribute `unsqueeze` is not defined on `list[Unknown] & ~list[Unknown]` in union `Unknown | (list[Unknown] & ~list[Unknown])`
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/sansio/response.py:644:50 error[unresolved-attribute] Object of type `object` has no attribute `to_header`
- src/werkzeug/datastructures/headers.py:519:51 error[invalid-argument-type] Argument to bound method `MultiDict.getlist` is incorrect: Expected `Never`, found `object`
+ src/werkzeug/http.py:1302:18 error[unresolved-attribute] Attribute `encode` is not defined on `dict[str, Any] & ~dict[Unknown, Unknown] & ~AlwaysFalsy` in union `(Any & ~AlwaysFalsy) | (dict[str, Any] & ~dict[Unknown, Unknown] & ~AlwaysFalsy) | (str & ~AlwaysFalsy)`
xarray (https://github.com/pydata/xarray)
+ xarray/backends/common.py:93:12 error[invalid-return-type] Return type does not match returned value: expected `str | T@_normalize_path`, found `(PathLike[Unknown] & ~PathLike[Unknown]) | str | (T@_normalize_path & ~PathLike[Unknown]) | Unknown`
- xarray/backends/scipy_.py:421:35 error[invalid-argument-type] Argument to constructor `Path.__new__` is incorrect: Expected `str | PathLike[str]`, found `str | (ReadBuffer[Unknown] & PathLike[object]) | (AbstractDataStore & PathLike[object])`
+ xarray/core/indexes.py:1927:26 error[invalid-assignment] Object of type `T_PandasOrXarrayIndex@Indexes & ~pandas.core.indexes.base.Index[Any]` is not assignable to `xarray.core.indexes.Index`
- xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~Top[integer[Any]]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
+ xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~integer[Any]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
yarl (https://github.com/aio-libs/yarl)
- yarl/_query.py:57:66 error[invalid-argument-type] Argument to function `query_var` is incorrect: Expected `str | SupportsInt`, found `object`
+ yarl/_query.py:57:66 error[invalid-argument-type] Argument to function `query_var` is incorrect: Expected `str | SupportsInt`, found `Unknown | (Sequence[str | SupportsInt] & ~list[Unknown] & ~tuple[Unknown, ...]) | (SupportsInt & ~list[Unknown] & ~tuple[Unknown, ...])`
zulip (https://github.com/zulip/zulip)
- scripts/lib/supervisor.py:51:32 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- scripts/lib/supervisor.py:74:31 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method28eb49f to
ba3929e
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
d9565af to
3b12452
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan